-- GENERATED SPELL FOR [Scorpid Terror] --


function spell0_4139(pUnit, Event) --@Terrify,n/a--
pUnit:FullCastSpellOnTarget(7399,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4139', 4284, 1)
end

function Sorts_4139(pUnit, Event)
local choix_sorts_4139 = math.random(0, 0)
if choix_sorts_4139 == 0 then
pUnit:RegisterEvent('spell0_4139', 1, 1)
end
end

function mob4139_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4139', math.random(1500, 3000), 1)
end

function mob4139_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4139_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4139_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4139, 1, 'mob4139_Action')
RegisterUnitEvent(4139, 2, 'mob4139_Leave')
RegisterUnitEvent(4139, 3, 'mob4139_Kill')
RegisterUnitEvent(4139, 4, 'mob4139_Die')
